package com.kangfu.db.domain.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 用户运动打分对象 user_point
 * 
 * @author ruoyi
 * @date 2022-09-30
 */
public class UserPoint
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** user.id */
    private Integer userId;

    /** 术后第几周 */
    private Integer weekOrder;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime endDate;

    /** 分数 */
    private BigDecimal score;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setWeekOrder(Integer weekOrder) 
    {
        this.weekOrder = weekOrder;
    }

    public Integer getWeekOrder() 
    {
        return weekOrder;
    }
    public void setStartDate(LocalDateTime startDate)
    {
        this.startDate = startDate;
    }

    public LocalDateTime getStartDate()
    {
        return startDate;
    }
    public void setEndDate(LocalDateTime endDate)
    {
        this.endDate = endDate;
    }

    public LocalDateTime getEndDate()
    {
        return endDate;
    }
    public void setScore(BigDecimal score) 
    {
        this.score = score;
    }

    public BigDecimal getScore() 
    {
        return score;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("weekOrder", getWeekOrder())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("score", getScore())
            .toString();
    }
}
